﻿<!DOCTYPE html>
<!--断路作业安全许可证审批-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <script src="../../static/js/Mock/JobLicenseApp_wanglr.js"></script>
    <script src="../../static/js/Resource/JobLicenseApp_wanglr.js"></script>
    <style>
        body {
            padding-bottom: 10px;
        }

        .toptitle label {
            margin-left: 20px;
        }

        .align_left {
            text-align: left;
        }

        table {
            width: 100%;
            border-top: 1px solid;
            border-left: 1px solid;
            text-align: center;
            /*border-right: none;*/
        }

            table td {
                border-right: 1px solid;
                border-bottom: 1px solid;
                /*height:38px;*/
                padding: 10px;
            }
    </style>

</head>
<body>
    
<div id="app" v-cloak>   

        <div style="width:100%;text-align:center ">
            <label style="font-weight:bold">断路作业安全许可证</label>
        </div>
        <div style="width:100%;text-align:right" class="toptitle">
            <label>2018-09-09</label>
            <label>Q/G11-018-R01</label>
            <label>No.：{{id}}</label>
        </div>
        <el-form :model="Form" status-icon style="margin-top:5px;width:100%" :rules="rules" ref="ruleForm">

            <table cellpadding="0" cellspacing="0" style="">
                <tr>
                    <td width="10%" rowspan="2">{{OpenCircuitSafetyPermit.CauseDisconnection}}</td>
                    <td width="65%" rowspan="2"> {{Form.CauseDisconnection}}</td>
                    <td width="10%">{{OpenCircuitSafetyPermit.ApplicationUnit}}</td>
                    <td width="15%"> {{Form.ApplicationUnit}}</td>
                </tr>
                <tr>
                    <td>{{OpenCircuitSafetyPermit.OperatingUnit}}</td>
                    <td> {{Form.OperatingUnit}}</td>
                </tr>
                <tr>
                    <td>{{OpenCircuitSafetyPermit.JobStartTime}}</td>
                    <td> {{Form.JobStartTime}}</td>
                    <td colspan="2"><el-checkbox v-model="Form.contractor">{{HotWorkSafetyLicense.contractor}}</el-checkbox></td>

                </tr>
                <tr>
                    <td colspan="4" class="align_left">
                        {{OpenCircuitSafetyPermit.SchematicDiagram+mark.m}}<br />
                        {{Form.SchematicDiagram}}
                    </td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="0" style="border-top:none;">
                <tr>
                    <td width="10%">{{SecurityAndRiskConfirmationCard.id}}</td>
                    <td width="70%">{{OpenCircuitSafetyPermit.SafetyMeasures}}</td>
                    <td width="10%">{{ConfinedSpace.Implementation}}</td>
                    <td width="10%">{{ConfinedSpace.ConfirmerSignature}}</td>
                </tr>
                <tr v-for="(v,i) in Form.BrokenCircuitMeasures">
                    <td>{{i+1}}</td>
                    <td class="align_left">{{v.SaftyMeasures}}</td>
                    <td>{{v.Implementation}}</td>
                    <td>
                        <signature v-model="v.ConfirmerSignature"></signature>
                    </td>
                </tr>

                <!--基于数据库管控要求begin-->
                <!--<tr>
                    <td colspan="4" class="align_left">{{OpenCircuitSafetyPermit.BasedDatabaseManagementRequirements}}</td>
                </tr>
                <tr>
                    <td>{{SecurityAndRiskConfirmationCard.id}}</td>
                    <td>{{OpenCircuitSafetyPermit.ControlRequirements}}</td>
                    <td>{{ConfinedSpace.Implementation}}</td>
                    <td>{{ConfinedSpace.ConfirmerSignature}}</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td class="align_left">1.1、完善皮管捆扎合格标准；</td>
                    <td>未落实</td>
                    <td><signature v-model="Form.ControlRequirementser1"></td>
                </tr>
                <tr>
                    <td>2</td>
                    <td class="align_left">
                        2.1、人员入职前进行三级教育<br />
                        2.2、入职后，每月车间主任组织一次安全考核、培训和安全例会，进行安全经验分享和知识分享；
                    </td>
                    <td>未落实</td>
                    <td><signature v-model="Form.ControlRequirementser2"></td>
                </tr>-->
                <!--基于数据库管控要求end-->
                <tr>
                    <td colspan="4" class="align_left">
                        本人确认收到许可证，了解作业对本单位的影响，将安排人员对此项工作给予关注和配合并和相关各方保持联系。<br />
                        {{OpenCircuitSafetyPermit.AffectedParties+mark.m}}<br />
                        <span style="width:45%; float:left; text-align:left;height:40px;">
                            <signature v-model="Form.AffectedParties"></signature>
                        </span>
                        <span style="width:45%; float:left; text-align:left;height:40px;">
                            2018-09-09 14:14:14
                        </span>

                    </td>
                </tr>
                <tr>
                    <td colspan="4" class="align_left">
                        我保证我及我的下属，已经了解本次作业的要求和此许可证的相关内容，并保证在作业开始前确认各项安全措施已落实，在作业过程中执行相关安全规定，在作业结束时及时通知属地部门负责人。<br />
                        {{OpenCircuitSafetyPermit.Disconnection+mark.m}}<signature v-model="Form.Disconnection">
                    </td>
                </tr>
                <tr>
                    <td colspan="4" class="align_left">
                        本人已审核与本许可证相关的文件，确认符合断路作业安全管理规定的要求，并对作业现场进行了检查, 确认安全措施已落实，同意作业。<br />
                        {{OpenCircuitSafetyPermit.Approver+mark.m}}<signature v-model="Form.Approver">
                    </td>
                </tr>
                <tr>
                    <td colspan="4" class="align_left">
                        我已确认，本次作业已全部结束，现场已得到妥善处理，本票证关闭。<br />
                        {{ScaffoldingChecklist.RelatedPeople+mark.m}}<signature v-model="Form.RelatedPeople">
                    </td>
                </tr>

            </table>


            <el-row>
                <el-form-item style="text-align:center; padding-top:5px">
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
        <el-dialog :title="DialogTitle" :visible.sync="ListItem.dialogVisible" width="80%" height="80%" top="10vh">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
    <script type="text/javascript">

        app = new Vue({
            el: '#app',
            data: function () {
                return {
                    id: '123',
                    DialogTitle: '相关表格',
                    ListItem: ListItem,
                    Form: {
                        RelatedPeople: '',//作业负责人
                        Approver: '',//审批人
                        Disconnection: '',//断路申请单位负责人
                        AffectedParties: '',//受影响相关方
                        ControlRequirementser1: '',//控制要求确认人
                        ControlRequirementser2: '',//控制要求确认人
                    },
                    rules: {},
                }
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                getData: function () {
                    getData(this, '/api/BrokenCircuit/getMock?id=123');
                },
                DialogInput: function () {
                    DialogShow(this, 'xg', "ProtectiveSetting.html", this.id);
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    this.$refs[formName].validate(function (valid) {
                        //验证通过
                        if (valid) {
                            onSubmitForm(this, '/api/BrokenCircuit/Save', mythis.Form);
                        } else {
                            //验证失败
                            return false;
                        }
                    });
                },
            },
            mounted: function () {

                this.getData();

            }
        });
    </script>

</body>
</html>